//---------------------------------------------------------------------------

#ifndef uFormatsPapierH
#define uFormatsPapierH

#include "Eic.h" //Pour PACKAGE_EIC
//---------------------------------------------------------------------------
enum NOM_FORMAT_PAPIER
{
  USER,
  LETTER,
  LETTER_SMALL,
  TABLOID,
  LEDGER,
  LEGAL,
  STATEMENT,
  EXECUTIVE,
  A3,
  A4,
  A4_SMALL,
  A5,
  B4,
  B5,
  FOLIO,
  QUARTO,
  ELEVEN_x_17,
  NOTE,
  ENVELOPE_9,
  ENVELOPE_10,
  ENVELOPE_11,
  ENVELOPE_12,
  ENVELOPE_14,
  C_SIZE_SHEET,
  D_SIZE_SHEET,
  E_SIZE_SHEET,
  ENVELOPE_DL,
  ENVELOPE_C5,
  ENVELOPE_C3,
  ENVELOPE_C4,
  ENVELOPE_C6,
  ENVELOPE_C65,
  ENVELOPE_B4,
  ENVELOPE_B5,
  ENVELOPE_B6,
  ENVELOPE,
  ENVELOPE_MONARCH,
  SIX_3_4_ENVELOPE,
  US_STD_FANFOLD,
  GERMAN_STD_FANFOLD,
  GERMAN_LEGAL_FANFOLD,
  NB_NOM_FORMAT_PAPIER,
};

enum UNITE_MESURE
{
  POUCES,
  MILLIMETRES,
};

struct TypePapier{
    char         szNomFormat[60];
    double       x;
    double       y;
    UNITE_MESURE Mesure;
};

struct TTaillePapier
{
  double dx;
  double dy;
};


class PACKAGE_EIC TFormatPapier
{
private :
  TStringList *slFormats;
public:
   __fastcall TFormatPapier();
   virtual __fastcall ~TFormatPapier();
   TTaillePapier            __fastcall GetTaillePapier(enum NOM_FORMAT_PAPIER eFormat, enum UNITE_MESURE eUnite);
   enum   NOM_FORMAT_PAPIER __fastcall GetFormatPapier(TTaillePapier *Pt, enum UNITE_MESURE eUnite);
   TypePapier               __fastcall GetTabFormatPapier(short shItem);
   __property TStringList *ListeFormats = {read = slFormats, write = slFormats};
};

#endif
